package com.bd.rj.backstage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bd.rj.common.entity.User;

import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */
public interface IUserService extends IService<User> {

    IPage<User> getUserByPage(int pageNum, QueryWrapper<User> queryWrapper);

    String deleteUser(Long[] id);

    IPage<Map<String, Object>> queryrole(IPage<Map<String, Object>> page);

    IPage<Map<String, Object>> queryrolename(IPage<Map<String, Object>> page, String rname);

    IPage<Map<String, Object>> querystatus(IPage<Map<String, Object>> page, Integer status);

    IPage<Map<String, Object>> queryuname(IPage<Map<String, Object>> page, String username);

    Map<String, Object> getUserDataForExport(Long[] id);

    Map<String, Object> getLogin(String username,String password);

    String getUserRoles(Long id);

    IPage<Map> getEnterpriseByConditionAndPage(int pagenum, int pageSize, Map<String, Object> map);

    void insertUserRole(Long userId);

    void batchImportUsers(Long userId);

//    IPage<Map<String, Object>> queryroleExcludeRole1(IPage<Map<String, Object>> page);
}
